package com.example.administrator.daggerdemo.module.api;

import com.example.administrator.daggerdemo.model.network.response.GetSMSCodeResponseInfo;
import com.example.administrator.daggerdemo.model.network.response.GetgrowResponseInfo;
import com.example.administrator.daggerdemo.model.network.response.LoginResponseInfo;
import com.example.administrator.daggerdemo.model.network.response.RegisterResponseInfo;


import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by zhengjian on 2016/12/8.
 */
public interface TestApi {
    @FormUrlEncoded
    @POST("APINavController/cmd.do")
    Observable<LoginResponseInfo> login(@Field("cmd") String cmd, @Field("data") String data); //登录

    @FormUrlEncoded
    @POST("APINavController/cmd.do")
    Observable<GetSMSCodeResponseInfo> getSMSCode(@Field("cmd") String cmd, @Field("data") String data); //获取验证码

    @FormUrlEncoded
    @POST("APINavController/cmd.do")
    Observable<RegisterResponseInfo> register(@Field("cmd") String cmd, @Field("data") String data); //注册

    @FormUrlEncoded
    @POST("APINavController/cmd.do")
    Observable<GetgrowResponseInfo> getGrowInfo(@Field("cmd") String cmd, @Field("data") String data, @Field("token") String token); //成长记录查询
}
